package cn.tac.test.spring.autowired.bean.impl;

import cn.tac.test.spring.autowired.bean.Enemy;
import cn.tac.test.spring.autowired.bean.GreeceHero;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @author : tac
 * @date : 15/04/2017
 */

public class Achilles implements GreeceHero {
    private Logger logger = LoggerFactory.getLogger(Achilles.class);

    private final String HERO_NAME = "Achilles";

    @Autowired
    private Enemy enemy;


    public void killEnemy() {
        logger.info(HERO_NAME + " kills " + enemy.getNum() + " enemies");
    }
}
